package com.example.enum
import com.baomidou.mybatisplus.annotation.EnumValue
import lombok.Getter
//性别枚举
@Getter
public  enum  GenderEnum{
    MALE(1,"男"),
    FEMALE(2,"女");
    @EnumValue//标记数据库存的值是 code
    private final int code;
    private final String desc;
}